import sys
import os
import string
import csv

def getMyFileSize(filePath):
    print "navdeep"
    print filePath
    newvarName = "Seema"
    newvarPath = filePath
    #return newvarName, newvarPath
    accesstime = os.path.getatime(filePath)
    print "Last Access Time accesstime", accesstime
    size = os.path.getsize(filePath)
    print size
    if size < 1024:
        print "size of file", size, "bytes"
    elif (size >= 1024 and size < 1048576):
        size = size / 1024
        print "size of file", size, "KB"
    elif(size >= 1048576):
        size = size / 1048576
        print "size of file", size, "MB"
        #size = size + " " + "MB"
    else:
        print "Invalid File/Input"
    return size

# Read From Text File and display File Contents as File Name, Date , size
def readDisplayFile(fileName):
    print fileName
 



